USE [Training]
GO

IF NOT EXISTS (SELECT * from dbo.sysobjects WHERE id = OBJECT_ID(N'dbo.training_api_LocationUpdate'))
	EXEC('CREATE PROC dbo.training_api_LocationUpdate AS')
GO

ALTER PROC dbo.training_api_LocationUpdate
	@Title		nvarchar(200),
	@LocationID	int
AS
	UPDATE Location
	SET
		Title = @Title
	WHERE
		LocationID = @LocationID
